import 'package:flutter/material.dart';
import 'package:healthy_station_flutter/utils/res_images.dart';

import '../utils/res_colors.dart';
import '../utils/screen_adapter.dart';

/// 
/// @Description 
/// @Author WuJianFeng
/// @Date 2024/3/21 10:55
/// 

class TitleBarSub extends StatefulWidget{
  TitleBarSub(this.title, {super.key});
  String title;

  @override
  State<StatefulWidget> createState() => _TitleBarSubState();
  
}

class _TitleBarSubState extends State<TitleBarSub>{
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: Adapt.pt(120),
      child: Stack(
        children: [
          Positioned(
            child: Align(
              alignment: Alignment.centerLeft,
              child: InkWell(
                onTap: (){

                  Navigator.pop(context);
                },
                child: SizedBox(
                  width: Adapt.pt(110),
                  height: Adapt.pt(120),
                  child: ImageUtils.getImgWithSize("back_blue.webp", 30, 53),
                ),
              ),
            ),
          ),
          Positioned.fill(
            child: Align(
              alignment: Alignment.center,
              child: Text(widget.title, style: TextStyle(fontSize: Adapt.pt(50),fontWeight: FontWeight.bold, color: color_273d58),),
            ),
          ),

        ],
      ),
    );
  }
  
}
 
 